wait_timeout = "10"
aliyun_one_device_one_secret_cmd = [
    {
        "cmd": 'AT+SAPBR=3,1,"Contype","GPRS"',
        "match": 'AT\+SAPBR=3,1,"Contype","GPRS"\s{4}OK\s{2}',
    },
    {
        "cmd": 'AT+SAPBR=3,1,"APN",""',
        "match": 'AT\+SAPBR=3,1,"APN",""\s{4}OK\s{2}',
    },
    {
        "cmd": 'AT+SAPBR=1,1',
        "match": 'AT\+SAPBR=1,1\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
    {
        "cmd": 'AT+SAPBR=2,1',
        "match": 'AT\+SAPBR=2,1\s{4}\+SAPBR: \d,\d,"[\.\d]+"\s{4}OK\s{2}',
    },
    {
        "cmd": 'AT+HTTPINIT',
        "match": 'AT\+HTTPINIT\s{4}OK\s{2}',
    },
    {
        "cmd": 'AT+HTTPPARA="URL","https://iot-auth.cn-shanghai.aliyuncs.com/auth/devicename"',
        "match": 'AT\+HTTPPARA="URL","https:\/\/iot-auth.cn-shanghai.aliyuncs.com\/auth\/devicename"\s{4}OK\s{2}',
    },
    {
        "cmd": 'AT+HTTPPARA="USER_DEFINED","Content-Type: application/x-www-form-urlencoded"',
        "match": 'AT\+HTTPPARA="USER_DEFINED","Content-Type: application\/x-www-form-urlencoded"\s{4}OK\s{2}',
    },
]
